<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>修改</title>
    <meta http-equiv="Content-Type" content="application/x-javascript; charset=utf-8"/>
    <link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="/static/common/laydate/theme/default/laydate.css"/>
    <link href="/static/common/editor/css/editormd.css" rel="stylesheet"/>

    <script type="text/javascript" src="/static/layui/layui.js"></script>
    <script type="text/javascript" src="/static/js/jquery3.4.0.js"></script>
    <script type="text/javascript" src="/static/common/editor/editormd.min.js"></script>
</head>
<script type="text/javascript">
    $(function () {
        editormd("mdEditor", {//注意1：这里的就是上面的DIV的id属性值
            placeholder: '欢迎使用',
            width: "90%",
            height: 640,
            syncScrolling: "single",
            path: "/static/common/editor/lib/",//注意2：你的路径
            saveHTMLToTextarea: true,//注意3：这个配置，方便post提交表单
            // 图片上传
            imageUpload: true,
            imageFormats: ["jpg", "jpeg", "gif", "png", "bmp", "webp"],
            imageUploadURL: "http://crawler_upload.6ack.com/upload/layedit"
        });
    });
</script>
<body>
<!-- 博客修改界面 start-->
<div id="win-blog-update" style="display: none">
    <form class="layui-form" id="form-blog-update" name="form-blog-update">
        <div class="layui-form-item">
            <label class="layui-form-label">博客标题</label>
            <div class="layui-input-block">
                <input type="text" name="" id="blog_title_update" placeholder="请输入" autocomplete="off"
                       class="layui-input"
                       value="">
            </div>
        </div>
        <div class="layui-form-item"  >
            <label class="layui-form-label">允许评论</label>
            <div class="layui-inline" >
                <select name="comments" lay-verify="" id="allow_comment">
                    <option value="1" selected="selected">是</option>
                    <option value="2">否</option>
                </select>
            </div>

        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">博客类型</label>
            <div class="layui-inline">
                <select name="city" lay-verify="" id="blog_category">
                    <option value="1" selected="selected">技术</option>
                    <option value="2">生活</option>
                    <option value="3">人物</option>
                    <option value="4">随谈</option>
                </select>
            </div>
        </div>

        <div>
            <input type="text" name="" id="blogId" class="layui-input" style="display: none">
        </div>

        <!-- editor -->
        <!--        <div id="content-editormd" class="form-group">-->
        <!--            <textarea style="" class="form-control" id="content-editormd-markdown-doc"-->
        <!--                      name="content-editormd-markdown-doc"></textarea>-->
        <!--        </div>-->
        <div id="mdEditor" class="editormd">
            <textarea class="editormd-markdown-textarea" name="markdown-area" style="display:none;"># 请输入标题</textarea>
            <textarea class="editormd-html-textarea" name="html-area"></textarea>
        </div>

        <div class="layui-form-item">
            <div class="layui-input-block">
                <button type="button" class="layui-btn" lay-submit lay-filter="*" id="news_update" name="news_update">立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary" id="news_res_update">重置</button>
            </div>
        </div>
    </form>
</div>
<!-- 博客修改界面 end-->
</body>
</html>